﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Library.Test.Logic
{

    public delegate void DelStrTo(string[] name);

    public delegate string DelSingeStrTo(string name);

    /// <summary>
    /// 委托字符串转换
    /// </summary>
    public class DelegateStrService
    {

        /// <summary>
        /// 转大写
        /// </summary>
        /// <param name="name"></param>
        public static void StrToUpper(string[] name)
        {
            for (int i = 0; i < name.Length; i++)
            {
                name[i] = name[i].ToUpper();
            }
        }

        /// <summary>
        /// 转小写
        /// </summary>
        /// <param name="name"></param>
        public static void StrToLower(string[] name)
        {
            for (int i = 0; i < name.Length; i++)
            {
                name[i] = name[i].ToLower();
            }
        }

        /// <summary>
        /// 转SYH
        /// </summary>
        /// <param name="name"></param>
        public static void StrSYH(string[] name)
        {
            for (int i = 0; i < name.Length; i++)
            {
                name[i] = "\"" + name[i] + "\"";
            }
        }
    }
}
